﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo7
{
    public class Pig:Animal
    {
        public void Arch()
        {
            Console.WriteLine("猪在拱");
        }
        public Pig(double length, double weight)
        {
            base.Length = length;
            base.Weight = Weight;
            Console.WriteLine($"这是一只猪,体长{length}米，体重{weight}千克。");
        }

    }
}
